export const usePermission = (auths: string[]) => {
    const local = useLocal();
    if (Array.isArray(auths)) {
        let isShow = false
        auths?.forEach((item: string) => {
            (local.permission.includes(item) || item == '*') && (isShow = true)
        })
        return isShow
    } else {
        return false
    }
}